Port Forwarding
Public IPv4 addresses are becoming scarce and increasingly
expensive. The Cloud-Bricks network supports the IPv6
protocol and was built to help during the transition between IPv4
and IPv6. One of the transition methods is the IPv4 NAT address.
These private IPv4 addresses are priceless and allows public access
from the Internet to a virtual machine using the Port Forwarding
Tool. (Review the
chapter about the different Types of IP addresses)The NAT addresses allows to access and manage a virtual machine remotely without using a public IP address. Cloud-Bricks automatically sets up public forwarding ports specially for the SSH, RDP and HTTP protocols, so VMs can be accessed from Internet by using the Cloud Brick public IPv4 address as "gateway". However, if a virtual machine requires to open a TCP or UDP service directly in the Internet and does not have a public IP address, you may use the port forwarding mechanism. This system can map a high port (>10.000) from the Cloud Brick node Public IPv4 address to an internal port in the virtual machine. Example with MySqlFor example, if we wish to make public the port 3306 in Internet (MySQL database) of a virtual machine that does not have a public IP address, but has an IPv4 NAT address. To do this, make sure that the MySQL service is running on port 3306, and give grant privileges to specific users from a remote host with the command in SQL Console:GRANT <privileges> ON *.* TO 'user'@'%' IDENTIFIED BY 'password'; Configure Port ForwardingNavigate to "Firewall>Port Forwarding" on the left menu.
Remote AccessTo access a Port Forwarded service, you must use the hostname and port listed in the "Source" column of the port forwarding table.
Important requirements
|
Contents
• Example with MySql• Configure Port Forwarding• Remote Access• Important requirements |